﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserPermissions.aspx.cs"
    Inherits="WMS6.Web.Administration.UserPermissions" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>UserPermissions</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" id="Script1" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newUserPermissions()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "UserPermissions.aspx?from="+escape(from);
            return false;
        }
         function AddUserPermissionsDetail()
        {
            window.location.href = "UserPermissionsDetail.aspx";
            return false;
        }
        //未授权仓库 想 已授权仓库增加 
        function UnauthorizedWH(listSrc)
        {
            var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
            if(nIndex>=0)
            {
                var values = listSrc.options[nIndex].value;     
               document.getElementById("<%=hdnUnauthorizedWH.ClientID %>").value = values;
                 __doPostBack('<%=ImgSub.ClientID.Replace('_','$')%>',''); 
             }
        }
        //已授权仓库 向未授权仓库添加
        function AuthorizedWH(listSrc)
        {
            var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnAuthorizedWH.ClientID %>").value = values;  
                  __doPostBack('<%=ImgAdd.ClientID.Replace('_','$')%>',''); 
              }
        }
        
        function UnauthorizedOwner(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnAuthorizedOwner.ClientID %>").value = values;  
                            __doPostBack('<%=imgUnauthorizedOwner.ClientID.Replace('_','$')%>',''); 
              }
        }
          function AuthorizedOwner(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {           
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnUnauthorizedOwner.ClientID %>").value = values;  
                    __doPostBack('<%=imgAuthorizedOwner.ClientID.Replace('_','$')%>',''); 
              }
        }
        
           function UnauthorizedCustomer(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnAuthorizedCustomer.ClientID %>").value = values;  
                            __doPostBack('<%=imgUnauthorizedCustomer.ClientID.Replace('_','$')%>',''); 
              }
        }
          function AuthorizedCustomer(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {           
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnUnauthorizedCustomer.ClientID %>").value = values;  
                    __doPostBack('<%=imgAuthorizedCustomer.ClientID.Replace('_','$')%>',''); 
              }
        }
        
            function UnauthorizedVendor(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnAuthorizedVendor.ClientID %>").value = values;  
                            __doPostBack('<%=imgUnauthorizedVendor.ClientID.Replace('_','$')%>',''); 
              }
        }
          function AuthorizedVendor(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {           
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnUnauthorizedVendor.ClientID %>").value = values;  
                    __doPostBack('<%=imgAuthorizedVendor.ClientID.Replace('_','$')%>',''); 
              }
        }
        
            function UnauthorizedCarrier(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnAuthorizedCarrier.ClientID %>").value = values;  
                            __doPostBack('<%=imgUnauthorizedCarrier.ClientID.Replace('_','$')%>',''); 
              }
        }
          function AuthorizedCarrier(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {           
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnUnauthorizedCarrier.ClientID %>").value = values;  
                    __doPostBack('<%=imgAuthorizedCarrier.ClientID.Replace('_','$')%>',''); 
              }
        }
        
               function UnauthorizedBillingentity(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnAuthorizedBillingentity.ClientID %>").value = values;  
                            __doPostBack('<%=imgUnauthorizedBillingentity.ClientID.Replace('_','$')%>',''); 
              }
        }
          function AuthorizedBillingentity(listSrc)
        {
           var option = document.createElement('option');
            var nIndex = listSrc.selectedIndex;
              if(nIndex>=0)
             {           
                var values = listSrc.options[nIndex].value;   
                document.getElementById("<%=hdnUnauthorizedBillingentity.ClientID %>").value = values;  
                    __doPostBack('<%=imgAuthorizedBillingentity.ClientID.Replace('_','$')%>',''); 
              }
        }
        
         function confirmMsg(code) {
          if (code == "F1300_001") {
              if (confirm('<%=GetGlobalMsgResource("F1300_001") %>')) {
                  return true;
              }
              else {
                  return false;
              }
          }
           if (code == "F1300_002") {
              if (confirm('<%=GetGlobalMsgResource("F1300_002") %>')) {
                  return true;
              }
              else {
                  return false;
              }
          }
          
          
      }
    </script>

</head>
<body>
    <form id="F1031" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="用户权限" meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" Enabled="False" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            Visible="False" AccessKey="n" OnClientClick="newUserPermissions();" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnSave%>"
                            AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnDelete%>"
                            AccessKey="d" OnClientClick="javascript:if(confirmMsg('F1300_001')) return true; else return false;"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnCopy%>"
                            AccessKey="c" OnClick="btnCopy_Click"  Visible="false"/>
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,7)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">用户角色</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,7)"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">仓库权限</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL3">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,7)"
                        id="divM3">
                        <asp:Label ID="one3" CssClass="navigationlabel" runat="server">货主权限</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR3">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL4">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,7)"
                        id="divM4">
                        <asp:Label ID="one4" CssClass="navigationlabel" runat="server">客户权限</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR4">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL5">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',5,7)"
                        id="divM5">
                        <asp:Label ID="one5" CssClass="navigationlabel" runat="server">供应商权限</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR5">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL6">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',6,7)"
                        id="divM6">
                        <asp:Label ID="one6" CssClass="navigationlabel" runat="server">承运商权限</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR6">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL7">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',7,7)"
                        id="divM7">
                        <asp:Label ID="one7" CssClass="navigationlabel" runat="server">计费实体权限</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR7">
                        </div>
                    </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="540" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblUomID" runat="server" CssClass="label" Text="登录名" meta:resourcekey="lblUomID"></asp:Label>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtUserID" runat="server" CssClass="textbox" Enabled="False" meta:resourcekey="txtUserID"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div style="margin-top: 10px;">
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                            OnClientClick="AddUserPermissionsDetail();" AccessKey="n" />
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Enabled="False"
                                            Text="<%$Resources:ButtonResource,btnDeleteDetail%>" AccessKey="s" OnClientClick="javascript:if(confirmMsg('F1300_002')) return true; else return false;"
                                            OnClick="btnDeleteDetail_Click" />
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div style="margin-left: 0px; margin-top: 10px;">
                                        <asp:GridView ID="gvRole" runat="server" AutoGenerateColumns="False" CssClass="gridview" oninit="gvRole_Init" 
                                            Width="100%" OnRowDataBound="gvRole_RowDataBound" DataKeyNames="RoleID" AllowPaging="True"
                                            OnPageIndexChanging="gvRole_PageIndexChanging" meta:resourcekey="gvRole">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                                </asp:BoundField>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvRole');" meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvRole');" meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="RoleID" HeaderText="角色" FooterText="角色" SortExpression="RoleID"
                                                    meta:resourcekey="RoleID">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                    <div id="div_pager">
                                        <input id="hdnCurrentPage" runat="server" type="hidden" value="0"></input>
                                        <input id="hdnPageSize" runat="server" type="hidden" value="20"></input>
                                        <input id="hdnTotalPages" runat="server" type="hidden"></input>
                                        <input id="hdnSortField" runat="server" type="hidden" value=" ROWID "></input>
                                        <input id="hdnSortDirection" runat="server" type="hidden" value=" ASC "></input>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none;">
                        <table width="700" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="300">
                                    <asp:Label ID="lblUnauthorizedWH" runat="server" CssClass="label" Text="未授权仓库" meta:resourcekey="lblUnauthorizedWH"></asp:Label>
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <asp:Label ID="lblAuthorizedWH" runat="server" CssClass="label" Text="已授权仓库" meta:resourcekey="lblAuthorizedWH"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="#" runat="server" id="isDefault" class="label" visible="False" onserverclick="btnWhIsDefault_Click">
                                        设置为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                    <asp:ListBox ID="lbxUnauthorizedWH" runat="server" SelectionMode="Multiple" onDblClick="UnauthorizedWH(this)"
                                        Height="300px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxUnauthorizedWH_SelectedIndexChanged"
                                        meta:resourcekey="lbxUnauthorizedWH"></asp:ListBox>
                                </td>
                                <td width="100" align="center">
                                    <asp:ImageButton ID="ImgSub" runat="server" ImageUrl="~/style/zh/1/images/arrow_r.gif"
                                        OnClick="ImgSub_Click" meta:resourcekey="ImgSub" />
                                    <br />
                                    <br />
                                    <br />
                                    <asp:ImageButton ID="ImgAdd" runat="server" ImageUrl="~/style/zh/1/images/arrow_l.gif"
                                        OnClick="ImgAdd_Click" meta:resourcekey="ImgAdd" />
                                </td>
                                <td width="300">
                                    <asp:ListBox ID="lbxAuthorizedWH" runat="server" SelectionMode="Multiple" onDblClick="AuthorizedWH(this)"
                                        Height="300px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxAuthorizedWH_SelectedIndexChanged"
                                        meta:resourcekey="lbxAuthorizedWH"></asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <input id="hdnAuthorizedWH" runat="server" type="hidden"> </input>
                                    <input id="hdnUnauthorizedWH" runat="server" type="hidden"></input>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">&nbsp;
                                    
                                </td>
                                <td width="100">&nbsp;
                                    
                                </td>
                                <td width="300">&nbsp;
                                    
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_3" style="display: none;">
                        <table width="700" style="display: block; margin-left: 10px; margin-top: 10px;" border="0">
                            <tr>
                                <td width="300">
                                    <asp:Label ID="lblUnauthorizedOwner" runat="server" CssClass="label" Text="未授权货主"
                                        meta:resourcekey="lblUnauthorizedOwner"></asp:Label>
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <asp:Label ID="lblAuthorizedOwner" runat="server" CssClass="label" Text="已授权货主" meta:resourcekey="lblAuthorizedOwner"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="#" runat="server" id="OwernIsDefault" class="label" visible="False" onserverclick="btnOwernIsDefault_Click">
                                        设置为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                    <asp:ListBox ID="lbxUnauthorizedOwner" SelectionMode="Multiple" runat="server" onDblClick="UnauthorizedOwner(this)"
                                        Height="300px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbkUnauthorizedOwner_SelectedIndexChanged"
                                        meta:resourcekey="lbxUnauthorizedOwner"></asp:ListBox>
                                </td>
                                <td width="100" align="center">
                                    <asp:ImageButton ID="imgUnauthorizedOwner" runat="server" ImageUrl="~/style/zh/1/images/arrow_r.gif"
                                        OnClick="imgUnauthorizedOwner_Click" meta:resourcekey="imgUnauthorizedOwner" />
                                    <br />
                                    <br />
                                    <br />
                                    <asp:ImageButton ID="imgAuthorizedOwner" runat="server" ImageUrl="~/style/zh/1/images/arrow_l.gif"
                                        OnClick="imgAuthorizedOwner_Click" meta:resourcekey="imgAuthorizedOwner" />
                                </td>
                                <td width="300">
                                    <asp:ListBox ID="lbxAuthorizedOwner" SelectionMode="Multiple" runat="server" Height="300px" onDblClick="AuthorizedOwner(this)"
                                        Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxAuthorizedOwner_SelectedIndexChanged"
                                        meta:resourcekey="lbxAuthorizedOwner"></asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <input id="hdnAuthorizedOwner" runat="server" type="hidden"> </input>
                                    <input id="hdnUnauthorizedOwner" runat="server" type="hidden"></input>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">&nbsp;
                                    
                                </td>
                                <td width="100">&nbsp;
                                    
                                </td>
                                <td width="300">&nbsp;
                                    
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_4" style="display: none;">
                        <table width="700" style="display: block; margin-left: 10px; margin-top: 10px;" border="0">
                            <tr>
                                <td width="300">
                                    <asp:Label ID="lblUnauthorizedCustomer" runat="server" CssClass="label" Text="未授权客户"></asp:Label>
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <asp:Label ID="lblAuthorizedCustomer" runat="server" CssClass="label" Text="已授权客户"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="#" runat="server" id="CustomerIsDefault" class="label" visible="False" onserverclick="btnCustomerIsDefault_Click">
                                        设置为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                    <asp:ListBox ID="lbxUnauthorizedCustomer" SelectionMode="Multiple" runat="server" onDblClick="UnauthorizedCustomer(this)"
                                        Height="300px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbkUnauthorizedCustomer_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                                <td width="100" align="center">
                                    <asp:ImageButton ID="imgUnauthorizedCustomer" runat="server" ImageUrl="~/style/zh/1/images/arrow_r.gif"
                                        OnClick="imgUnauthorizedCustomer_Click" />
                                    <br />
                                    <br />
                                    <br />
                                    <asp:ImageButton ID="imgAuthorizedCustomer" runat="server" ImageUrl="~/style/zh/1/images/arrow_l.gif"
                                        OnClick="imgAuthorizedCustomer_Click" />
                                </td>
                                <td width="300">
                                    <asp:ListBox ID="lbxAuthorizedCustomer" SelectionMode="Multiple" runat="server" Height="300px" onDblClick="AuthorizedCustomer(this)"
                                        Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxAuthorizedCustomer_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <input id="hdnAuthorizedCustomer" runat="server" type="hidden"> </input>
                                    <input id="hdnUnauthorizedCustomer" runat="server" type="hidden"></input>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">&nbsp;
                                    
                                </td>
                                <td width="100">&nbsp;
                                    
                                </td>
                                <td width="300">&nbsp;
                                    
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_5" style="display: none;">
                        <table width="700" style="display: block; margin-left: 10px; margin-top: 10px;" border="0">
                            <tr>
                                <td width="300">
                                    <asp:Label ID="lblUnauthorizedVendor" runat="server" CssClass="label" Text="未授供应商"></asp:Label>
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <asp:Label ID="lblAuthorizedVendor" runat="server" CssClass="label" Text="已授供应商"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="#" runat="server" id="VendorIsDefault" class="label" visible="False" onserverclick="btnVendorIsDefault_Click">
                                        设置为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                    <asp:ListBox ID="lbxUnauthorizedVendor" runat="server" SelectionMode="Multiple" onDblClick="UnauthorizedVendor(this)"
                                        Height="300px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbkUnauthorizedVendor_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                                <td width="100" align="center">
                                    <asp:ImageButton ID="imgUnauthorizedVendor" runat="server" ImageUrl="~/style/zh/1/images/arrow_r.gif"
                                        OnClick="imgUnauthorizedVendor_Click" />
                                    <br />
                                    <br />
                                    <br />
                                    <asp:ImageButton ID="imgAuthorizedVendor" runat="server" ImageUrl="~/style/zh/1/images/arrow_l.gif"
                                        OnClick="imgAuthorizedVendor_Click" />
                                </td>
                                <td width="300">
                                    <asp:ListBox ID="lbxAuthorizedVendor" runat="server" SelectionMode="Multiple" Height="300px" onDblClick="AuthorizedVendor(this)"
                                        Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxAuthorizedVendor_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <input id="hdnAuthorizedVendor" runat="server" type="hidden"></input>
                                    <input id="hdnUnauthorizedVendor" runat="server" type="hidden"></input>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">&nbsp;
                                    
                                </td>
                                <td width="100">&nbsp;
                                    
                                </td>
                                <td width="300">&nbsp;
                                    
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_6" style="display: none;">
                        <table width="700" style="display: block; margin-left: 10px; margin-top: 10px;" border="0">
                            <tr>
                                <td width="300">
                                    <asp:Label ID="lblUnauthorizedCarrier" runat="server" CssClass="label" Text="未授权承运商"></asp:Label>
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <asp:Label ID="lblAuthorizedCarrier" runat="server" CssClass="label" Text="已授权承运商"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="#" runat="server" id="CarrierIsDefault" class="label" visible="False" onserverclick="btnCarrierIsDefault_Click">
                                        设置为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                    <asp:ListBox ID="lbxUnauthorizedCarrier" runat="server" SelectionMode="Multiple" onDblClick="UnauthorizedCarrier(this)"
                                        Height="300px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbkUnauthorizedCarrier_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                                <td width="100" align="center">
                                    <asp:ImageButton ID="imgUnauthorizedCarrier" runat="server" ImageUrl="~/style/zh/1/images/arrow_r.gif"
                                        OnClick="imgUnauthorizedCarrier_Click" />
                                    <br />
                                    <br />
                                    <br />
                                    <asp:ImageButton ID="imgAuthorizedCarrier" runat="server" ImageUrl="~/style/zh/1/images/arrow_l.gif"
                                        OnClick="imgAuthorizedCarrier_Click" />
                                </td>
                                <td width="300">
                                    <asp:ListBox ID="lbxAuthorizedCarrier" runat="server" SelectionMode="Multiple" Height="300px" onDblClick="AuthorizedCarrier(this)"
                                        Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxAuthorizedCarrier_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <input id="hdnAuthorizedCarrier" runat="server" type="hidden"></input>
                                    <input id="hdnUnauthorizedCarrier" runat="server" type="hidden"></input>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">&nbsp;
                                    
                                </td>
                                <td width="100">&nbsp;
                                    
                                </td>
                                <td width="300">&nbsp;
                                    
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_7" style="display: none;">
                        <table width="700" style="display: block; margin-left: 10px; margin-top: 10px;" border="0">
                            <tr>
                                <td width="300">
                                    <asp:Label ID="lblUnauthorizedBillingentity" runat="server" CssClass="label" Text="未授权计费实体"></asp:Label>
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <asp:Label ID="lblAuthorizedBillingentity" runat="server" CssClass="label" Text="已授权计费实体"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <a href="#" runat="server" id="BillingentityIsDefault" class="label" visible="False"
                                        onserverclick="btnBillingEntityIsDefault_Click">设置为默认</a>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                    <asp:ListBox ID="lbxUnauthorizedBillingentity" SelectionMode="Multiple" runat="server" onDblClick="UnauthorizedBillingentity(this)"
                                        Height="300px" Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbkUnauthorizedBillingEntity_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                                <td width="100" align="center">
                                    <asp:ImageButton ID="imgUnauthorizedBillingentity" runat="server" ImageUrl="~/style/zh/1/images/arrow_r.gif"
                                        OnClick="imgUnauthorizedBillingEntity_Click" />
                                    <br />
                                    <br />
                                    <br />
                                    <asp:ImageButton ID="imgAuthorizedBillingentity" runat="server" ImageUrl="~/style/zh/1/images/arrow_l.gif"
                                        OnClick="imgAuthorizedBillingEntity_Click" />
                                </td>
                                <td width="300">
                                    <asp:ListBox ID="lbxAuthorizedBillingentity" SelectionMode="Multiple" runat="server" Height="300px" onDblClick="AuthorizedBillingentity(this)"
                                        Width="100%" AutoPostBack="True" OnSelectedIndexChanged="lbxAuthorizedBillingEntity_SelectedIndexChanged">
                                    </asp:ListBox>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">
                                </td>
                                <td width="100">
                                </td>
                                <td width="300">
                                    <input id="hdnAuthorizedBillingentity" runat="server" type="hidden"> </input>
                                    <input id="hdnUnauthorizedBillingentity" runat="server" type="hidden"></input>
                                </td>
                            </tr>
                            <tr>
                                <td width="300">&nbsp;
                                    
                                </td>
                                <td width="100">&nbsp;
                                    
                                </td>
                                <td width="300">&nbsp;
                                    
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="ImgAdd" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="ImgSub" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnAddDetail" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnDeleteDetail" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnDelete" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    </form>
</body>
</html>
